<?php
/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Education
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
?>

<div class="education_profile">
  <ul class="educations_entries">
    <?php foreach( $this->paginator as $education ): ?>
      <li>
        <?php if ($this->showphoto): ?>
        <div class="education_photo">
          <?php echo $this->htmlLink($education->getHref(), $this->itemPhoto($education, 'thumb.normal'));?>
        </div>
        <?php endif; ?>
        
        <div class="education_content">
          <div class="education_title"><?php echo $education->__toString()?></div>
          <?php if ($this->showdetails): ?>
            <div class="education_details">
              <?php if ($education->concentration): ?>
                <?php echo $education->concentration; ?>
              
                <?php if ($education->class_year || $education->degree): ?>
                 &middot;
                <?php endif;?>  
              <?php endif; ?>
              
              <?php if ($education->degree): ?>
                <?php echo $education->degree; ?>
              <?php endif;?> 
              <?php if ($education->class_year): ?>
                <?php echo $education->class_year; ?>
              <?php endif;?> 

            </div>
          <?php endif; ?>
          <?php if ($this->showmeta): ?>
            <div class="education_meta">
              <?php echo $this->translate('Posted on %s', $this->timestamp(strtotime($education->creation_date))) ?></span>
              -
              <?php echo $this->translate(array("%s comment", "%s comments", $education->comment_count), $this->locale()->toNumber($education->comment_count)); ?>
              -
              <?php echo $this->translate(array('%1$s like', '%1$s likes', $education->like_count), $this->locale()->toNumber($education->like_count)); ?>
              -
              <?php echo $this->translate(array('%s view', '%s views', $education->view_count), $this->locale()->toNumber($education->view_count)); ?>
            </div>
          <?php endif;?>
          <?php if ($this->showdescription && $education->getDescription()): ?>
            <div class="education_description">
              <?php echo $this->viewMore($education->getDescription()); ?>
            </div>
          <?php endif;?>
        </div>

      </li>
    <?php endforeach; ?>
  </ul>
  
  <div class="education_profile_links">
    <?php echo $this->htmlLink(array('route'=>'education_user', 'user_id'=>$this->subject()->getIdentity()),
      $this->translate('View All Educations'),
      array('class'=>'buttonlink item_icon_education')
    )?>
  </div>
</div> 


 